<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="button" value="新增" onclick="javascript:location.href='addBrand.jsp'"><br>
<hr>
<table border="1" cellspacing="0" width="80%">
    <tr>
        <th>序号</th>
        <th>品牌名称</th>
        <th>企业名称</th>
        <th>排序</th>
        <th>品牌介绍</th>
        <th>状态</th>
        <th>操作</th>

    </tr>

    <c:forEach items="${brands}" var="b" varStatus="s">
        <tr align="center">
            <td>${s.count}</td>
            <td>${b.brandName}</td>
            <td>${b.companyName}</td>
            <td>${b.ordered}</td>
            <td>${b.description}</td>
            <td>${b.status == 1 ? "启用" :"禁用"}</td>
            <td><a href="/selectById?id=${b.id}">修改</a>
                <a href="/deleteById?id=${b.id}">删除</a></td>
        </tr>
    </c:forEach>


</table>

</body>
</html>